﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            int thickness = int.Parse(textBox1.Text);
            int altitude = 8848;
            int i = 0;
            while (thickness < altitude)
            {
                thickness = thickness * 2;
                i++;
            }
            textBox2.Text = Convert.ToString(i);
        }
    }
}
